package com.xebest.web.service.impl;

import com.xebest.web.form.XeVenProSkuForm;
import com.xebest.web.mapper.read.XeVenProSkuReadMapper;
import com.xebest.web.service.XeVenProSkuService;
import com.xebest.web.view.XeVenProSkuView;
import com.xebest.web.view.XeVenProView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XeVenProSkuServiceImpl implements XeVenProSkuService {

    @Autowired
    private XeVenProSkuReadMapper xeVenProSkuReadMapper;    //商品库存读取


    /**
     * 库存初始化List信息
     * @author: Wangyp
     * @createTime: 2017/6/30 13:33
     * @history:
     * @param :venInquirySheetForm
     * @return: list
     */
    public List<XeVenProSkuView> queryXeVenProSkuList(XeVenProSkuForm xeVenProSkuForm){
        return xeVenProSkuReadMapper.queryXeVenProSkuList(xeVenProSkuForm);
    }

    /**
     * 商品列表   （采购用）
     * @param xeVenProSkuForm
     * @return
     */
    public List<XeVenProView> queryXeVenProList(XeVenProSkuForm xeVenProSkuForm){
        return xeVenProSkuReadMapper.queryXeVenProList(xeVenProSkuForm);
    }

    /**
     * 根据商品sku查询商品失效时间
     * @author: Wangyp
     * @createTime: 2017/9/13 16:23
     * @param :
     * @return:
     */
   public XeVenProView selectFailureTimeByProSku(String proSku){
        return xeVenProSkuReadMapper.selectFailureTimeByProSku(proSku);
    }


}
